SftTree/OCX 7.0

SftTree.EditAllowed Event

Softel vdm, Inc.

Determines whether a cell can be reached during cell editing.

Syntax       

VB.NET

Private Sub object_EditAllowed(ByVal sender As Object, ByVal e As EventArgumentType) Handles object.EditAllowed

VB

Private Sub object_EditAllowed(ByVal ItemIndex As Long, ByVal ColIndex As Integer, Allowed As Boolean)

C#.NET

void object_EditAllowed(object sender, EventArgumentType e);

VC++

void OnEditAllowedobject(long ItemIndex, short ColIndex, VARIANT_BOOL* Allowed);

C

HRESULT OnEditAllowedobject(long ItemIndex, short ColIndex, VARIANT_BOOL* Allowed);

Delphi

procedure objectEditAllowed(Sender: TObject; ItemIndex : Integer; ColIndex : Smallint; var Allowed : WordBool);

object

A SftTree object.

EditIndex

The zero-based item index of the item to be tested for cell editing.  The combination of EditIndex and EditCol describes an individual cell.

EditCol

The zero-based column number.  The combination of EditIndex and EditCol describes an individual cell.

Allowed

Return True to allow editing of the specified cell, False otherwise.

Comments

The EditAllowed event determines whether a cell can be reached during cell editing.

It is called while a EditNavigate method is being processed, to determine whether a cell can be reached during cell editing.  It is possible to suppress cell editing for items and cells using the Item.EditIgnore and Cell.EditIgnore properties.  In addition, the EditNavigate method can be used to disallow editing of cells, even if the cell is otherwise editable.

If cell editing is suppressed for items and cells using the Item.EditIgnore and Cell.EditIgnore properties, the EditAllowed event does not occur for these items and cells.

Other than determining whether a cell can be reached during cell editing, this event should not take any other action or update the tree control in any way.

See Also  SftTree Object | Object Hierarchy


Feedback / comments / error reports for this topic
© 2015 - Softel vdm, Inc. - www.softelvdm.com